home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / src / exampleCode / games / IndiZone / blix / blixscore.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-02  |  2.0 KB  |  63 lines

  1. /*
  2.  * Copyright (C) 1994, Silicon Graphics, Inc.
  3.  * All Rights Reserved.
  4.  *
  5.  * This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
  6.  * the contents of this file may not be disclosed to third parties, copied or
  7.  * duplicated in any form, in whole or in part, without the prior written
  8.  * permission of Silicon Graphics, Inc.
  9.  *
  10.  * RESTRICTED RIGHTS LEGEND:
  11.  * Use, duplication or disclosure by the Government is subject to restrictions
  12.  * as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
  13.  * and Computer Software clause at DFARS 252.227-7013, and/or in similar or
  14.  * successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
  15.  * rights reserved under the Copyright Laws of the United States.
  16.  */
  17. /*_______________________________________________________________________
  18.  |
  19.  | blixscore.h - handles reading and writing highscores
  20.  |
  21.  | There are three levels of highscore stored at different places
  22.  | the first level is in the users home directory to store the personal
  23.  | highscores. The second is stored in "/usr/tmp/Indyzone/blix" and
  24.  | holds the systemwide scores. The third - more interesting level - 
  25.  | holds the worldwide records (for people who can reach the server)
  26.  | The format of the file is the same in all three cases.
  27.  |
  28.  | (c) 1994 Frans van Hoesel, hoesel@chem.rug.nl
  29.  |     Xtreme Graphics Software
  30.  | should add file locking;
  31.  | tijdens writeimage de image wel even copieren frans!
  32.  |
  33. */
  34.  
  35. #ifndef BLIXSCORE_H__SEEN
  36.  
  37. #include "blixscore_io.h"
  38.  
  39. int gethostname (char *name, int namelen);
  40.  
  41. typedef struct userinfo_t {
  42.     char host[48];
  43.     char name[48];
  44.     char home[256];
  45.     char image[256];
  46.     int score;
  47.     long addr;
  48. } userinfo_t;
  49.  
  50. void doscore(int score);
  51. void init_tmpdir(void);
  52. void printscore(char *header, scorelist_t *scorelist);
  53. void init_server(void);
  54. userinfo_t *getinf(void);
  55. void showscore(int clearin, int score, int fadeout);
  56.  
  57. extern scorelist_t worldlist;
  58. extern scorelist_t systemlist;
  59. extern scorelist_t privatlist;
  60.  
  61. #define BLIXSCORE_H__SEEN
  62. #endif
  63.